import React from "react";
import PropTypes from "prop-types";

/**
 * 是否展示组件
 * jiansong 2019/11/8
 */

/**
 * @param show 是否展示
 * @param children 展示内容
 */
const WrShow = ({show = false, children}) => {
    return show && children
}

WrShow.propTypes = {
    show: PropTypes.bool,
}
export default WrShow;